package com.woniu40.petai_manager.service;

import com.woniu40.petai_manager.entity.Order;
import com.woniu40.petai_manager.mapper.OrderMapper;
import com.woniu40.petai_manager.vo.OrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {

    @Autowired
    OrderMapper orderMapper;

public List<Order> findAll(){

    List<Order> all = orderMapper.findAll();
    return all;

}

//public List<Order> findOrder(){
//    List<Order> orders = orderMapper.selectAll();
//    return orders;
//}


public int update(Integer id){
    int update = orderMapper.update(id);
    return update;
}




}
